﻿using System;
using UnityEngine;
using UnityEngine.UI;

public class EditorSetChildrenText : MonoBehaviour
{
    [ContextMenuItem("Set", "Start")]
    public Font font;

    [ContextMenu("Set")]
    private void Start()
    {
        foreach (Text text in base.GetComponentsInChildren<Text>(true))
        {
            text.font = this.font;
        }
    }
}

